package cn.iocoder.yudao.module.mqtt.controller.admin.devicedriver.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备驱动新增/修改 Request VO")
@Data
public class DeviceDriverSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12291")
    private Long id;

    @Schema(description = "设备ID", example = "20409")
    private Long deviceId;

    @Schema(description = "通讯口ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30740")
    private String commPortId;

    @Schema(description = "驱动名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "驱动名称不能为空")
    private String driverName;

    @Schema(description = "品牌", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "品牌不能为空")
    private String brand;

    @Schema(description = "型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "型号不能为空")
    private String model;

    @Schema(description = "设备地址")
    private String deviceAddress;

    @Schema(description = "最小采集时间(ms)")
    private Integer minCollectTime;

    @Schema(description = "通讯等待时间(ms)'")
    private Integer commWaitTime;

    @Schema(description = "16位整型")
    private String int16AddressRange;

    @Schema(description = "32/64位整型")
    private String  int3264AddressRan;

    @Schema(description = "32/64位浮点型")
    private String float3264AddressRange;

    @Schema(description = "字符串字节序")
    private String stringByteOrder;

    @Schema(description = "字符串编码")
    private String stringEncoding;

    @Schema(description = "分块采集方式")
    private String blockCollectMode;

    @Schema(description = "4区16位写功能码")
    private String codeWrite;

    @Schema(description = "通讯间隔时间(ms)'")
    private Integer commIntervalTime;

    @Schema(description = "描述", example = "你说的对")
    private String description;

}